﻿using HuaCheng.UserControls;

namespace HuaCheng.CommonClass
{
    public class UcFactory
    {
        public static UserBase getUcChannel(int type,string language)
        {
            UserBase uc = null;
            if (type == 0)
            {
                uc = new UcChannelBig(language);
            }
            else if (type == 1)
            {
                uc = new UcChannelMid(language);
            }
            else if(type == 2)
            {
                uc = new UcChannelSmall(language);
            }
            else
            {
                uc = new UserPicture();
            }
            return uc;
        }
    }
}
